package com.zhentao.model.complaint.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ad_complaint
 */
@TableName(value ="ad_complaint")
@Data
public class AdComplaint implements Serializable {
    /**
     * 投诉表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 投诉人id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 被投诉id
     */
    @TableField(value = "complained_id")
    private Integer complainedId;

    /**
     * 类型（0红娘 1会员 2朋友圈）
     */
    @TableField(value = "ctype")
    private Integer ctype;

    /**
     * 投诉结果（
     */
    @TableField(value = "feedback")
    private String feedback;

    /**
     * 投诉理由
     */
    @TableField(value = "reason")
    private String reason;
    /**
     * 投诉证据图片
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdTime;

    /**
     * 投诉状态
     */
    @TableField(value = "audit_sataus")
    private Integer auditSataus;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
